import type {ClassConstructor} from "class-transformer/types/interfaces";

export function Generics (genericsClazz: Record<string, ClassConstructor<any>>) {
  return function (target: any) {
        for (const key in genericsClazz) {
            const property = `clazz${key}`;
            target.prototype[property] = genericsClazz[key];
        }
    };
}